<style>
.fui-navbar .cartbtn {padding-right:0.3rem;background:#fff;opacity:1}
.fee-tag-nav, .fee-tagup-nav, .fee-disabled-nav {border-radius:1rem;height:2rem;line-height:2rem;color:#fff;width:100%;font-weight:400;font-size:0.7rem;margin:0.2rem 0;padding:0 0.2rem}
.fee-tagup {background:{{main.syscolor || 'red'}};color:#fff;width:auto;font-weight:400;font-size:0.55rem}
.fee-tag-nav {background:{{main.syscolor || 'red'}}; opacity: 0.58;}
.fee-tagup-nav {background:{{main.syscolor || 'red'}};}
.fee-disabled-nav {background:#bbb;color:#fff;}	
</style>
<div class="fui-page fui-page-current">
<div class="fui-tab fui-tab-danger" style="margin-top:0">
	<a ng-class="{'external active':pagedata.params.status == 0}" ng-click="pagedata.params.status = 0;tool.get_list('jy_yangjidan/myjiorder/list/',true)">待支付</a>
	<a ng-class="{'external active':pagedata.params.status == 1}" ng-click="pagedata.params.status = 1;tool.get_list('jy_yangjidan/myjiorder/list/',true)">已支付</a>
	<a ng-class="{'external active':pagedata.params.status == 2}" ng-click="pagedata.params.status = 2;tool.get_list('jy_yangjidan/myjiorder/list/',true)">已发货</a>
	<a ng-class="{'external active':pagedata.params.status == 3}" ng-click="pagedata.params.status = 3;tool.get_list('jy_yangjidan/myjiorder/list/',true)">已完成</a>
</div>
<div class="fui-content" style='top:2rem;'>
	<div class="jy-content">	
			<div ng-repeat="item in pagedata.list" class="fui-cell-group radius" style="padding:0.5rem;">
					<div class="fui-cell" style="margin-bottom:0.3rem;padding:0.5rem;border-radius:0.5rem;">
						<div class="fui-cell-label">
							<img ng-if="item.type==0" style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/jidan.png" />
							<img ng-if="item.type==1" style="border-radius: 50%;padding:0.15rem;width:3rem;height:3rem;background-color: #fff;" src="../addons/jy_yangjidan/imgs/xiaoji.png" />
						</div>
						<div class="fui-cell-text" style="font-size:0.65rem">
							<div ng-if="item.type==0">鸡蛋{{item.jdnum}}枚</div>
							<div ng-if="item.type==1">成鸡1只</div>
							<div class="sycolor">￥{{item.price}}</div>
							<div class="gray">状态:{{item.statustitle}}</div>
							<div class="gray">{{item.createtime}}</div>
						</div>
						<div class="fui-cell-remark noremark">
							<div ng-if="item.status==0" class="label label-success" ng-click="pay_submit({},'//pay/id='+item.id,'/myjiorder/','/myjiorder/')">支付</div>
							<div ng-if="item.status==2" class="label label-success" ng-click="post({},'//receive/id='+item.id)">确认收货</div>
						</div>
					</div>
			</div>
		</div>
	</div>
</div>
<div ng-include="sys_html('_footer')"></div>
<script>
	scope.pagedata.loading=true;
	scope.tool.get_list('jy_yangjidan/myjiorder/list/',true);
	scope.pagedata.scroll_bottom=function(){
		scope.tool.get_list('jy_yangjidan/myjiorder/list/');
	}
</script>